﻿<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="Registration.aspx.cs" Inherits="ThuChi.Registration" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style4
        {
            width: 160px;
            text-align: right;
        }
        .style5
        {
            width: 218px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <table align="center" bgcolor="Snow" cellpadding="3" 
    style="border: thin solid #C0C0C0; width: 100%">
            <tr>
                <td colspan="3" 
                
                    style="border-color: #dbddff; border-bottom-style: solid; border-bottom-width: medium;">
                <strong style="font-size: large">&nbsp;Đăng ký tài khoản</strong></td>
            </tr>
            <tr>
                <td colspan="3">
        <asp:Label ID="lblTinhTrang" runat="server" ForeColor="Green" style="text-align: left" 
                        Width="100%"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    &nbsp; 
                <asp:Label ID="lblTenDangNhap" runat="server" Font-Bold="True" Font-Size="14px" 
                    Text="Tên đăng nhập:" AssociatedControlID="txtTenDangNhap"></asp:Label>
                </td>
                <td style="text-align: left" class="style5">
                    <asp:TextBox ID="txtTenDangNhap" runat="server" Width="220px" MaxLength="50" 
                        style="margin-right: 0px" ValidationGroup="2"></asp:TextBox>
                </td>
                <td style="text-align: left">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtTenDangNhap" ErrorMessage="Vui lòng nhập tên đăng nhập" 
                        ForeColor="Red" ValidationGroup="2"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    &nbsp;&nbsp;
                <asp:Label ID="lblMatKhau" runat="server" Font-Bold="True" Font-Size="14px" 
                    Text="Mật khẩu:" AssociatedControlID="txtMatKhau"></asp:Label>
                </td>
                <td class="style5">
                    <asp:TextBox ID="txtMatKhau" runat="server" Width="220px" TextMode="Password" 
                        ValidationGroup="2"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtMatKhau" ErrorMessage="Vui lòng nhập mật khẩu" 
                        ForeColor="Red" ValidationGroup="2"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    &nbsp;&nbsp;
                <asp:Label ID="lblXacNhanMatKhau" runat="server" Font-Bold="True" Font-Size="14px" 
                    Text="Xác nhận mật khẩu:" AssociatedControlID="txtXacNhanMatKhau"></asp:Label>
                </td>
                <td class="style5">
                    <asp:TextBox ID="txtXacNhanMatKhau" runat="server" Width="220px" 
                        TextMode="Password" ValidationGroup="2"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="txtXacNhanMatKhau" ErrorMessage="Vui lòng xác nhận mật khẩu" 
                        ForeColor="Red" ValidationGroup="2"></asp:RequiredFieldValidator>
                    <br />
                    <asp:CompareValidator ID="CompareValidator1" runat="server" 
                        ControlToCompare="txtMatKhau" ControlToValidate="txtXacNhanMatKhau" 
                        ErrorMessage="Mật khẩu xác nhận phải khớp" ForeColor="Red" 
                        ValidationGroup="2"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    &nbsp;&nbsp;
                <asp:Label ID="lblTenDayDu" runat="server" Font-Bold="True" Font-Size="14px" 
                    Text="Tên đầy đủ:" AssociatedControlID="txtTenDayDu"></asp:Label>
                </td>
                <td class="style5">
                    <asp:TextBox ID="txtTenDayDu" runat="server" Width="220px" MaxLength="100" 
                        ValidationGroup="2"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ControlToValidate="txtTenDayDu" ErrorMessage="Vui lòng nhập tên đầy đủ" 
                        ForeColor="Red" ValidationGroup="2"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    &nbsp;</td>
                <td valign="top" class="style5">
                    <asp:Button ID="btnDangKy" runat="server" onclick="btnDangKy_Click" 
                        Text="Đăng ký" ValidationGroup="2" />
                    &nbsp;<input id="Reset" tabindex="0" type="reset" value="Làm lại" />&nbsp;
                    <asp:LinkButton ID="lbtnDangKy" runat="server" 
                    PostBackUrl="~/Login.aspx">Đăng nhập</asp:LinkButton>
                </td>
                <td>
                    <br />
                    <br />
                </td>
            </tr>
        </table>
</asp:Content>